Skip to content

feat: Pi.map rename to Function.map#39233

Open
linesthatinterlace wants to merge 9 commits into
leanprover-community:masterfrom
linesthatinterlace:function_map
Open

feat: Pi.map rename to Function.map#39233
linesthatinterlace wants to merge 9 commits into
leanprover-community:masterfrom
linesthatinterlace:function_map

Conversation

@linesthatinterlace
Copy link
Copy Markdown
Collaborator

@linesthatinterlace linesthatinterlace commented May 12, 2026

This PR renames Pi.map to Function.map and makes the changes necessary to support this. In particular this means that Mathlib.Logic.Function.Defs now only contains the Function namespace.

Zulip thread: #PR reviews > #39233 - rename Pi.map to Function.map @ 💬


Open in Gitpod

@linesthatinterlace linesthatinterlace added the WIP Work in progress label May 12, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

PR summary 52e99ade9e

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Logic.Function.Defs 57 58 +1 (+1.75%)
Import changes for all files
Files Import difference
Mathlib.Logic.Function.Defs Mathlib.Logic.Relator 1

Declarations diff

+ Pi.map
+ Pi.map_apply
+ Pi.map_comp_map
+ Pi.map_id
+ Pi.map_id'
+ Pi.map_injective
+ Pi.map_iterate
+ Pi.map_update
+ map_const
+ map_def
+ map_injective
+ map_update
- _root_.Pi.map_injective
- _root_.Pi.map_update

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.


No changes to strong technical debt.
No changes to weak technical debt.

@linesthatinterlace linesthatinterlace removed the WIP Work in progress label May 12, 2026
@linesthatinterlace linesthatinterlace changed the title feat: Function.map partial changes feat: Pi.map rename to Function.map May 12, 2026
@eric-wieser eric-wieser added the awaiting-zulip There is a Zulip discussion; the author should await and report/implement the decision reached there label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-zulip There is a Zulip discussion; the author should await and report/implement the decision reached there

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants